package com.itheima.mycollectiondemo;

import java.util.ArrayList;

public class MyCollectionDemo5 {
    public static void main(String[] args) {
        ArrayList<String> list = new ArrayList<>();
        list.add("a");
        list.add("a");
        list.add("a");
        list.add("a");
        list.add("a");
        //增强型for循环
        for (String s : list) {
            System.out.println(s);
        }
    }

}
